/*------------------------------------------------------
                hou_elearningGEN beta v1.0
Author: xtrung.net@gmail.com
Write On: 04/27/2008
Create On:4/13/2012 11:22:46 AM
------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace hou_elearning.Entity
{
    public class DanhmucsukienslideEntity
    {
        public DanhmucsukienslideEntity()
        {
            m_pk_sdanhmucsukienslideid = "";
            m_stensukien = "";
            m_sghichu = "";
        }
		private String m_pk_sdanhmucsukienslideid;
        public String PK_sDanhmucsukienslideID
		{
            get { return m_pk_sdanhmucsukienslideid; }
            set { m_pk_sdanhmucsukienslideid = value; }
		}
        private String m_stensukien;
        public String sTensukien
        {
            get { return m_stensukien; }
            set { m_stensukien = value; }
        }
        private String m_sghichu;
        public String sGhichu
        {
            get { return m_sghichu; }
            set { m_sghichu = value; }
        }
        #region Comparison
        public static List<DanhmucsukienslideEntity> Sort(List<DanhmucsukienslideEntity> list, String SortExpression, String SortDirection)
        {
            string strComparisonAttrb="COMPARISON_"+SortExpression;
            PropertyInfo propInfo= typeof(TacvuEntity).GetProperty(strComparisonAttrb);
            if (propInfo != null)
            {
                list.Sort(propInfo.GetGetMethod().Invoke(null, null) as Comparison<DanhmucsukienslideEntity>);
                if (SortDirection == "DESC")
                    list.Reverse();
            }
            return list;
        }
        #endregion
    }
}
